list1 = [1, 2, 3]
str1 = ''.join(str(e) for e in list1)
>>> import ast
>>> x = '[ "A","B","C" , " D"]'
>>> x = ast.literal_eval(x)
>>> x
['A', 'B', 'C', ' D']
>>> x = [n.strip() for n in x]
>>> x
['A', 'B', 'C', 'D']
list1 = ['1', '2', '3']
str1 = ''.join(list1)
using System;
using System.Collections.Generic;
public class Example
{
public static void Main()
{
List<string> list = new List<string>() { "A", "B", "C" };
char delim = ',';
string str = String.Join(delim, list);
Console.WriteLine(str);
}
}
/*
Output: A,B,C
*/